package com.ssj.dataSource;


import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class MyDataSourceTest {

    public static void main(String[] args) throws SQLException {
        DataSource myDataSource = new MyDataSource();
        Connection connection = myDataSource.getConnection();
        connection.close();
        System.out.println("--------");
        int i=3/0;
        int j="2";
    }
}